package org.example.psn.core.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.example.system.common.bean.BaseEntity;

/**
 * <p>
 * 菜单信息表
 * </p>
 *
 * @author Joey
 * @since 2021-05-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="Menu对象", description="菜单信息表")
public class Menu extends BaseEntity {

    private static final long serialVersionUID=1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "父级id")
    @TableField("parentId")
    private Long parentId;

    @ApiModelProperty(value = "类型0=模块1=菜单")
    @TableField("menuType")
    private Integer menuType;

    @ApiModelProperty(value = "菜单标题")
    @TableField("menuTitle")
    private String menuTitle;

    @ApiModelProperty(value = "菜单名称")
    @TableField("menuName")
    private String menuName;

    @ApiModelProperty(value = "页面路径")
    @TableField("pagePath")
    private String pagePath;

    @ApiModelProperty(value = "菜单路径")
    @TableField("menuPath")
    private String menuPath;

    @ApiModelProperty(value = "菜单图标")
    @TableField("menuIcon")
    private String menuIcon;

    @ApiModelProperty(value = "序号")
    @TableField("sortNum")
    private Integer sortNum;



}
